import request from '@/utils/request'

export function findDiagnosesData(data) {
  return request({
    url: '/findDiagnoses',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
export function saveDiagnoses(data) {
  return request({
    // url: '/saveDiagnosesList',
    url: '/save/webDiagnoses',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
export function findStrokeDiagnose(data) {
  return request({
    url: '/findStrokeDiagnose',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
export function saveStrokeDiagnose(data) {
  return request({
    // url: '/saveDiagnosesList',
    url: '/saveStrokeDiagnose',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
export function selectScoreClassAll(data) {
  return request({
    url: '/selectScoreClassAll',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
export function selectScoreConclusion(data) {
  return request({
    url: '/selectScoreConclusion',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}
export function saveScores(data) {
  return request({
    url: '/saveScores',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}
export function selectScores(data) {
  return request({
    url: '/selectScores',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
export function updateScores(data) {
  return request({
    url: '/updateScores',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}
